#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d", &a);
	switch (a)
	{
	case 1:b =30;
	case 2:b = 20;
	case 3:b = 16;
	default:b = 0;
		break;
	}
	printf("%d", b);
	return 0;
}